package cn.inno.controller;

import cn.inno.service.DeptClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.List;

@RequestMapping("/cli")
@RestController
public class DeptController {

    @Autowired
    private DeptClientService deptClientService;

    @GetMapping("/list")
    public String list() {
        return deptClientService.list();
    }


}
